export const setRoute = (user: string[]): void => {
  const routeJsonStr: string = JSON.stringify(user);
  localStorage.setItem('route', routeJsonStr);
};
export const getRoute = (): string[] | null => {
  const routeJsonStr: string | null = localStorage.getItem('route');
  if (routeJsonStr === null) {
    return null;
  }
  return JSON.parse(routeJsonStr) as string[];
};
export const removeRoute = (): void => {
  localStorage.removeItem('route');
};
